
AM_CPPFLAGS = -I$(top_srcdir)/include $(WX_CXXFLAGS_ONLY)
iconsdir = $(datadir)/icons

bin_PROGRAMS = xmunipack

xmunipack_SOURCES = xmunipack.cpp fits.cpp fitsimage.cpp itt.cpp color.cpp \
       palette.cpp fitsmeta.cpp browser.cpp log.cpp list.cpp fileprop.cpp \
       view.cpp config.cpp mdark.cpp display.cpp corrections.cpp \
       time.cpp value.cpp grid.cpp tune.cpp detail.cpp event.cpp \
       head.cpp icon.cpp help.cpp collector.cpp \
       archive.cpp thumbnail.cpp fitscoo.cpp zoom.cpp dataobj.cpp \
       coloring.cpp plot.cpp listwin.cpp rawimport.cpp cone.cpp \
       search.cpp preferences.cpp resume.cpp calibrate.cpp astrometry.cpp \
       astrometer.cpp

xmunipack_LDFLAGS = @LIBGCC@ @LIBSTDCPP@ $(WX_LIBS) $(PLplot_LIBS) -L../munipack
xmunipack_LDADD = -lmprocess -lcfitsio -lm

man_MANS = xmunipack.1

icons_DATA = icons/munipack_icon.png icons/throbber.gif \
	icons/stock_up.png icons/stock_refresh.png icons/stock_cancel.png \
        icons/stock_zoom_fit_width.png icons/stock_home.png \
	icons/stock_back.png icons/stock_zoom_one_to_one.png \
	icons/stock_forward.png icons/stock_preferences.png \
	icons/Luv_gamut.png icons/google-gadgets-gtk.png icons/head_icon.png \
	icons/stock_folder.png icons/table_icon.png icons/gphoto.png

Xmunipack.app: Info.plist xmunipack
	-mkdir -p Xmunipack.app
	-mkdir -p Xmunipack.app/Contents
	-mkdir -p Xmunipack.app/Contents/MacOS
	-mkdir -p Xmunipack.app/Contents/Resources
	cp Info.plist Xmunipack.app/Contents/
	echo -n 'APPL????' > Xmunipack.app/Contents/PkgInfo
	cp xmunipack Xmunipack.app/Contents/MacOS/
	cp icons/munipack_icon.png Xmunipack.app/Contents/Resources/Xmunipack.png

